<!--
 * @作者: kerwin
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box"> </div>

    <script>

        let vueobj = {

        }

        let proxy = new Proxy(vueobj,{
            get(target,key){
                return target[key]
            },
            set(target,key,value){
                if(key==="data"){
                    //操作dom
                    box.innerHTML = value
                }

                target[key] = value
            }
        })
    </script>
</body>
</html>